import axios from '@/utils/axios'
import { ObjectString } from '@/types/type-common'

export const login = (data: ObjectString) => {
  return axios({
    url: '/login/login',
    method: 'POST',
    data
  })
}

export const logout = () => {
  return axios({
    url: '/login/logout',
    method: 'POST'
  })
}
